<template>
  <!-- 商家管理页面 -->
  <div class="root">
  <topbar />

    <div class="admin_title">
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane label="用户管理" name="first">用户管理</el-tab-pane>
        <el-tab-pane label="配置管理" name="second">配置管理</el-tab-pane>
        <el-tab-pane label="角色管理" name="third">角色管理</el-tab-pane>
        <el-tab-pane label="定时任务补偿" name="fourth" >定时任务补偿</el-tab-pane
        >
      </el-tabs>
    </div>
  </div>
</template>

<script>
import topbar from '@/components/topbar.vue'
export default {
    data() {
      return {
        activeName: 'second'
      };
    },
    components: {
      topbar
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    }
  };
</script>

<style>
.admin_title {
  width: 100%;
  height: auto;
}
.root {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  /* background-color: red; */
}
</style>